package tmp.threadlocal;

/**
 * @Description
 * @ClassName OrderService
 * @Author 山山大魔王
 * @Date 2021/12/5 12:29
 * @Version 1.0
 */
public class OrderService {
    public void createOrder(){
        String name = Thread.currentThread().getName();
//        System.out.println("OrderService当前线程["+name+"]中保存的数据是：" + ThreadLocalTest.data.get(name));
        System.out.println("OrderService当前线程["+name+"]中保存的数据是：" + ThreadLocalTest.threadLocal.get());
    }
}
